﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class src_mess : webBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Utility.checkLogin();
    }
   
    protected void TBInviaMessaggio_Click(object sender, EventArgs e)
    {
        if (TBAchi.Text != "")
        {
            DB.insertWithOutPar("ForumDB", "insert into Message(title, text, receiver, sender) values ('" + TBOggetto.Text + "','" + TBTesto.Text + "','" + TBAchi.Text + "','" + utente.username + "')");


            TBOggetto.Text = "";
            TBTesto.Text = "";
            TBAchi.Text = "";
        }
        
    }
    protected void TBAchi_TextChanged(object sender, EventArgs e)
    {

    }
}


//"'(select username from User, Message  where username ='username'))